
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的资产 - EOL</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="/css/weui.min.css">
    <link rel="stylesheet" href="/css/jquery-weui.min.css">
    <style>
        *{
            margin: 0;
        }
        @font-face
        {
            font-family: numberFont;
            src: url('/img/Farrington7B_Qiqi.ttf')
        }
        body{
            font-family: -apple-system-font,Helvetica Neue,sans-serif;
            line-height:normal;
        }
        html{
            -webkit-tap-highlight-color: transparent;
        }
        .top{
            width:99.5%;
            height:180px;
            background-color: #272C4F;
            border: 1px #111535 solid;
            border-top: 0;
        }
        .panel{
            position: relative;
            height:240px;
            width:87%;
            background-image: linear-gradient(to bottom right,#5EE58A,#3FCDC8);
            top:10px;
            margin: auto;
            border-radius:20px;
            /**rgba(105, 187, 151, 0.47)**/
            box-shadow: 0px 8px 12px rgba(129, 225, 188, 0.6);
        }
        .title{
            padding: 15px;
            color: #fff;
            font-size: 25px;
        }
        .money{

            position: relative;
            font-size: 60px;
            color: #fff;
            width: 100%;
            text-align: center;
            padding-top: 28px;
            letter-spacing: 2px;
        }
        .money span{
            font-size: 20px;
        }
        .des{
            position: relative;
            font-size: 18px;
            color: #fff;
            width: 100%;
            text-align: center;
            padding-top: 10px;
            letter-spacing: 2px;
            font-weight: lighter;
        }
        .Grid {
            display: flex;
        }

        .clickO:active{
            background-color: #4DCCA2;
        }

        .clickT:active{
            background-color: #3fc2b1;
        }

        .Grid-cell {
            flex: 1;
            color: #fff;
            height:35px;
            line-height: 35px;
            border-radius:5px;
        }
        .operation{
            position: relative;
            text-align: center;
            padding: 10px;
            padding-top: 50px;
        }
        .tip{
            width: 90%;
            border-radius:10px;
            background-color: #fff;
            box-shadow: 0px 8px 18px #ebeaed;
            height:auto;
            margin: auto;
            margin-top: 140px;
        }
        .tip-title{
            padding:15px;
            font-weight: bold;
        }
        .tip-content{
            padding:15px;
            padding-top: 0;
            color: #38363A;
            font-size: 15px;
            letter-spacing: 2px;
            padding-right: 3px;
        }
        .tip-bottom{
            padding: 15px;
            text-align: center;
            font-size: 15px;
            color: #666569;
            border-top: 1px #F2F2F4 solid;
        }
        .list-time{
            width:30%;
            font-size:13px;
            display: inline-block;
            text-align: right;
            color: #858585;
            opacity: 0.5;
            padding-top: 5px;
        }
        .list-content{
            width:68%;
            display: inline-block;
            text-align: left;
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
            font-size: 11px;
            padding-top: 5px;
            vertical-align: top;
            opacity: 0.8;
        }
        .list{
            width: 95%;
            border-radius: 10px 10px 10px 10px;
            margin: 0 auto;
            text-align: left;
        }
        li{
            padding-top: 4px;
            margin-left: -7px;
        }
        ul{
            padding-left: 0;
        }
        .btn{
            margin-left: 15px;
            font-size: 11px;
            font-weight: lighter;
            border-radius:20px;
            padding: 3px;
            border: 1px #868687 solid;
            line-height: 15px;
            padding-left:8px;
            padding-right:8px;
            color: #828183;
            transition: all 0.5s;
        }
        .tip-content p{
            padding-top: 3px;
            color: #9a9a9a;
            opacity: 0.8;
        }
        .shadow{
            width:60%;
            height:30px;
            background-image: linear-gradient(to bottom right,#95D9BC,#C8ECE4);
            position: relative;
            bottom:-28px;
            margin: auto;
            opacity: 0.5;
            display: none;
        }
        .line{
            width: 95%;
            height: 2px;
            background-image: linear-gradient(to bottom right,#F5F4F7,#F5F4F7);
            margin: 0 auto;
            margin-top:10px;
            margin-bottom:10px;
        }
        .notice-box{
            font-family: \5fae\8f6f\96c5\9ed1;
            height: 35px;
            line-height: 35px;
            background-color: #fff8cd;
            text-align: center;
            font-size: 14px;
            color: #5b4a28;
            transition: all 0.5s;
            position: fixed;
            top:0;
            width: 100%;
            z-index:9;
            margin-top: -35px;
        }
        .weui-input{
            width: 96%;
            margin: auto;
            height: 35px;
            margin-top: 13px;
        }
        #showPer{
            color:#fff;
            font-size: 18px;
        }
        .weui-slider__track{
            transition: all 0.5s;
        }
        .weui-slider__handler{
            transition: all 0.5s;
        }
        .list-logo{
            background-color: #2e2e2e;
            margin:5px;
            margin-right:14px;
            width:40px;
            height:40px;
            border-radius: 500px;
            text-align: center;
            margin-left: 14px;
            margin-top: 0;
        }
        .list-number{
            width: 25%;
            text-align: right;
            font-size: 20px;
            opacity:1;
            font-weight: bold;
            padding-right: 10px;
        }
        .list-gird{
            padding-top: 15px;
            border-bottom: 1px #F2F2F4 solid;
            padding-bottom: 11px
        }

    </style>
</head>
<body>
<!--
<p class="notice-box">
    转账通知：用户 asJs***jP 向您转账 2000
</p>
-->
    <div class="top">
        <div class="title">

        </div>
        <div class="panel">
            <div class="money">
            </div>
            <div class="des">
                ( 资产余额 )
            </div>
            <div class="operation">
                <div class="Grid">
                    <div onclick="open_popup()" class="Grid-cell clickO" style="border-radius:5px 0 0 5px;border-right: 1.5px rgba(58,170,144,0.52) solid;height:50px;margin-top: -13px">
                        <p style="margin-top: -17px;"><img src="/img/rev.png" style="    width: 55px;"></p>
                        <p style="margin-top: -25px;">转出</p>

                    </div>

                    <div onclick="open_popup2()" class="Grid-cell clickT" style="height:50px;margin-top: -13px">
                        <p style="margin-top: -13px;"><img src="/img/get.png" style="    width: 40px;"></p>
                        <p style="margin-top: -14px">接收</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="shadow"></div>
    </div>

    <div class="tip">
        <div class="tip-title">我的地址<span class="btn copy" onclick="copy()" data-clipboard-text="0x21eef21a36f714f8d77bb424a576ed03huGKQUW9" data-clipboard-action="copy">一键复制</span></div>
        <div class="tip-content" style="margin-top: -5px;font-size: 17px;word-wrap:break-word" th:text="${wallet.publicKey}">
        </div>
        <div class="tip-content" style="font-size: 13px;">
            <p>
                1.注意地址正确性，若输入错误将无法接收。
            </p>
            <p>
                2.人为因素导致糖果转出或接收丢失的情况，将不负责追回。
            </p>
	<p>
              3.目前仅支持EOL钱包内部转账，请勿转出EOL外的钱包地址。
          </p>  
        </div>
        <!--<div class="tip-bottom">点击复制</div>--->
    </div>

    <div class="tip" style="margin-top: 25px">
        <div class="tip-title">账户记录</div>
        <div class="tip-content">
            <ul style="list-style: none;">

                                <li>
                    <p class="list-content" style="text-align: left">〖系统〗注册赠送5000EOL</p>
                    <p class="list-time" style="text-align: right;font-size: 11px">05-23 07:31</p>
                </li>
                                <li>
                    <p class="list-content" style="text-align: left">〖系统〗关注公众号赠送4000EOL</p>
                    <p class="list-time" style="text-align: right;font-size: 11px">01-01 08:00</p>
                </li>
                
            </ul>
        </div>
        <div onclick="loadMore()" class="tip-bottom loadMore">查看更多</div>
    </div>
    <div style="height:60px"></div>



    <div id="popup" class="weui-popup__container popup-bottom ">
        <div class="weui-popup__overlay"></div>
        <div class="weui-popup__modal" style="
    height: 70%;
    border-radius: 15px 15px 0px 0px;
    background:#fff;position: fixed;    z-index: 99999999999;
">
            <p style="height: 10px"></p>
            <p style="text-align: center;font-size: 21px;letter-spacing:2px;font-weight: bold;">转出EOL</p>

            <p style="padding:25px;font-size:15px;padding-top:15px;letter-spacing:1px;color: #858585">

            <div class="weui-flex">
                <div><div class="placeholder" style="margin: 15px"><img style="width: 30px" src="/img/link.png"/></div></div>
                <div class="weui-flex__item"><div class="placeholder">
                    <input id="putSite" class="weui-input" type="text"  placeholder="请输入接收地址">
                </div></div>
                <div><div class="placeholder"></div></div>
            </div>
            <div class="weui-flex">
                <div><div class="placeholder" style="margin: 8px;"><img style="width: 43px" src="/img/logo.png"/></div></div>
                <div class="weui-flex__item"><div class="placeholder">
                    <input id="putNum" style="margin-top: 9px;" class="weui-input" type="number"  placeholder="请输入转出数量">
                </div></div>
                <div><div class="placeholder"></div></div>
            </div>
            <div class="line" style="    margin-top: -2px;"></div>
            <div class="weui-slider" id="slider1" style="    width: 80%;margin: auto">
                <div id="showPer" style="position: relative;
    top: -61px;
    width: 88%;
    left: 20%;
    background-color: rgb(65, 141, 115);
    height: 36px;
    text-align: center;
    border-radius: 20px;
    display: none;
    line-height: 36px;">

                </div>
                <div id="showPerS" style="    width:0;
    height:0;
    display: none;
    border-width:20px;
    border-style:solid dashed dashed dashed;
    border-color:#418D73 transparent transparent transparent;margin-top: -75px;"></div>
                <div class="weui-slider__inner">
                    <div style="width: 0%;" class="weui-slider__track"></div>
                    <div style="left: 0%;" class="weui-slider__handler"></div>
                </div>
            </div>
            <br>
            <br>
            <div style="width: 100%;text-align: center">
                <div class="btn copy sub" style="margin: 0;font-size: 16px;padding: 9px;padding-left: 29px;padding-right: 29px;margin: auto;width:12%;color:#666567">转 出</div>
            </div>
            </p>
            <p style="height: 10px"></p>



            <div style="    margin: auto;
    text-align: center;
    position: absolute;
        width: 100%;
    bottom: 20px;">
                <div class="line"></div>
                <div onclick="close_popup()" class='close-popup' style="    height: 20px;"><img style="    width: 20px;" src="/img/close.png"/></div>
            </div>
        </div>
    </div>


    <div id="popup2" class="weui-popup__container popup-bottom">
        <div class="weui-popup__overlay"></div>
        <div class="weui-popup__modal" style="
    height: 70%;
    border-radius: 15px 15px 0px 0px;
    background:#fff
">
            <p style="height: 10px"></p>
            <p style="text-align: center;font-size: 21px;letter-spacing:2px;font-weight: bold;">接收EOL</p>

            <p style="padding:25px;font-size:15px;padding-top:15px;letter-spacing:1px;color: #858585">


            <div class="tip-title">我的地址:</div>
            <div class="tip-content" style="margin-top: -5px;font-size: 17px;word-wrap:break-word">
                0x21eef21a36f714f8d77bb424a576ed03huGKQUW9            </div>
            <div class="tip-content" style="font-size: 13px;">
                <p>
                    *本字符串址是您收唯一接收地址，接收/转出请注意地址正确性。人为因素导致转出/接收丢失不负责找回。
                </p>

            </div>

            </p>
            <p style="height: 10px"></p>
            <div style="text-align: center;margin-top: 47px;">
                <span style="margin-left:0px;padding-left: 21px;padding-right: 21px;font-size: 16px;" class="btn copy" onclick="copy()" data-clipboard-text="0x21eef21a36f714f8d77bb424a576ed03huGKQUW9" data-clipboard-action="copy">复制我的地址</span>
            </div>


            <div style="    margin: auto;
    text-align: center;
    position: absolute;
        width: 100%;
    bottom: 20px;">
                <div class="line"></div>
                <div onclick="close_popup()" class='close-popup' style="    height: 20px;"><img style="    width: 20px;" src="/img/close.png"/></div>
            </div>
        </div>
    </div>

<div id="logs" class="weui-popup__container popup-bottom ">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal" style="
    height: 100%;

    background:#fff;
">
        <p style="height: 10px"></p>
        <p style="text-align: center;font-size: 21px;letter-spacing:2px;font-weight: bold;">更多记录</p>

        <p style="padding:16px;font-size:15px;padding-top:0px;letter-spacing:1px;color: #858585">

            <div>
                <ul style="list-style: none;width: 98%;margin: auto;">


                        <div id="logList">

                        </div>

        <li style="margin: 0;border-bottom: 1px #F2F2F4 solid;">
            <p onclick="loadMoreIn()" class="loadMoreInBtn" style="width: 100%;text-align: center;line-height: 35px">
                查看更多
            </p>
            <p style="height: 10px"></p>
        </li>
        </ul>
    </div>


        </p>
        <p style="height: 42px"></p>




    </div>
<div style="    margin: auto;
    text-align: center;
        position: fixed;
        width: 100%;
    bottom: 0px;
    z-index: 9999;
    background-color: #fff;
">
    <div style="margin-top: 0px;" class="line"></div>
    <div onclick="close_popup()" class='close-popup' style="    margin-bottom: 14px;height: 20px;"><img style="    width: 20px;" src="/img/close.png"/></div>
</div>
</div>







<br><br>


    <div class="weui-footer " style="position: static">
        <p class="weui-footer__text" style="color:#acacac">@ EOL V1.01 Bata</p>
        <p style="height: 10px"></p>
    </div>

    <script src="/js/jquery.min.js"></script>
    <script src="/js/jquery-weui.min.js"></script>
    <script src="/js/clipboard.min.js"></script>
    <script th:inline="javascript">

        var clipboard = new Clipboard('.copy');
        var all = [[${wallet.balance}]];
        var num = 0;
        var left = -5;
        var first = true;
        var is_double = false; //是否出现二次确认
        var is_click = true;
        var is_sub = false;  //是否转账
        var touchMove = true;
        var page = 2;//当前页数
        var first_log = false;

        countUp($(".money"),all,0,1200,0);
        function countUp(elem, endVal, startVal, duration, decimal) {
            //传入参数依次为 数字要变化的元素，最终显示数字，数字变化开始值，变化持续时间，小数点位数
            var startTime = 0;
            var dec = Math.pow(10, decimal);
            var progress,value;
            function startCount(timestamp) {
                if(!startTime) startTime = timestamp;
                progress = timestamp - startTime;
                value = startVal + (endVal - startVal) * (progress / duration);
                value = (value > endVal) ? endVal : value;
                value = Math.floor(value*dec) / dec;
                elem.text(value.toFixed(decimal));
                progress < duration && requestAnimationFrame(startCount)
            }
            requestAnimationFrame(startCount)
        }





        setTimeout("showTopTip()",1000);

        function loadMoreIn(){
            $(".loadMoreInBtn").html("<i class=\"weui-loading\"></i>");
            data = [];
            //page;
            $.ajax({
                url:'/base/user/getLogList',
                type:'post',
                data: {
                    page:page
                },
                async : true, //默认为true 异步
                dataType: 'json',
                success:function(data){
                    console.log(data);
                    if(data.code == 0){
                        //loadLog();
                        page++;

                        data.msg.forEach(function(e){
                            var num_color = "";
                            var str_icon = "";
                            if(e.type == "系统"){
                                str_icon = "<img style=\"width:34px;padding-top: 7px;padding-left: 3px\" src=\"/img/logo.png\"/>";
                                num_color = "#FFB746";
                            }
                            if(e.type == "接收"){
                                str_icon = "<img style=\"width:32px;padding-top: 5px\" src=\"/img/rev.png\"/>";
                                num_color = "#282828";
                            }
                            if(e.type == "转出"){
                                str_icon = "<img style=\"width:22px;padding-top: 7.5px\" src=\"/img/get.png\"/>";
                                num_color = "#FFB746";
                            }
                            var str = $("<div class=\"weui-flex list-gird\">\n" +
                                "  <div>\n" +
                                "    <div class=\"placeholder\">\n" +
                                "      <div class=\"list-logo\">\n" +
                                "        "+ str_icon +"\n" +
                                "      </div>\n" +
                                "    </div>\n" +
                                "  </div>\n" +
                                "  <div class=\"weui-flex__item\">\n" +
                                "    <div class=\"placeholder\">\n" +
                                "      <font style=\"font-size: 16px;color:#282828\">"+ e.str +"</font>\n" +
                                "      <br>\n" +
                                "      <font style=\"font-size: 13px;color: #282828\">[ "+ e.type +" ]</font>\n" +
                                "      <br>\n" +
                                "      <font style=\"font-size: 13px;color: #858585\">"+ e.time +"</font>\n" +
                                "    </div>\n" +
                                "  </div>\n" +
                                "  <div>\n" +
                                "    <div class=\"placeholder list-number\">\n" +
                                "      <font style=\"color:"+ num_color +"\">"+ e.number +"</font>\n" +
                                "    </div>\n" +
                                "  </div>\n" +
                                "</div>");
                            $("#logList").append(str);


                        });

                        $(".loadMoreInBtn").html("查看更多");
                    }
                    if(data.code == -1){
                        this.location.href= '/';
                    }
                    if(data.code == -2){
                        $(".loadMoreInBtn").html("已无更多");
                    }
                }
            });


            //setTimeout("loadLogIn()",1000);
        }


        $('#putNum').bind('input propertychange', function() {
            num = parseInt($("#putNum").val());
            if($("#putNum").val().length == 0){
                num = 0;
            }
            if(num <= all){
                var per = Math.floor((num/all) * 100);
                $(".weui-slider__track").css("width",per+"%");
                $(".weui-slider__handler").css("left",per+"%");
            }else{
                if(num == 0 || $("#putNum").val().length == 0){
                    num = 0;
                }else{
                    num = all;
                }
                var per = Math.floor((num/all) * 100);
                $(".weui-slider__track").css("width",per+"%");
                $(".weui-slider__handler").css("left",per+"%");
                $("#putNum").val(all);
            }

        });

        $(".sub").click(function () {
            if(is_click){
                if(!is_double){
                    var site = $("#putSite").val();
                    var num = parseInt($("#putNum").val());
                    if(!site){
                        $.toptip("请输入对方的地址", 2000, 'warning');
                        return false;
                    }
                    if(!num){
                        $.toptip("请输入转出数量", 2000, 'warning');
                        return false;
                    }else{
                            if(num <= 0){
                                $.toptip("请输入正确的转出数量-2", 2000, 'warning');
                                return false;
                            }
                    }
                    $(this).css("width","35%");
                    is_double = true;
                    is_click = false;
                    setTimeout("doubleSub()",400);
                    return false;

                }
                if(!is_sub){


                    $(".sub").html("<i class=\"weui-loading\"></i>");
                    is_sub = true;
                    is_click = false;
                    $(this).css("width","12%");
                    setTimeout("doubleLoad()",300);
                }
            }

        });
        function doubleSub(){
            $(".sub").text("再次点击确认");
            is_click = true;
            //$(".sub").css("padding","5px 29px");
        }
        function doubleLoad(){
            //setTimeout("$(\".sub\").html(\"<i class=\\\"weui-loading\\\"></i>\");",100);
            //console.log('a');



            var to = $("#putSite").val();
            var num = $("#putNum").val();
            $.ajax({
                url: '/base/user/transfer',
                type: 'post',
                data: {
                    to:to,
                    num:num
                },
                async: true, //默认为true 异步
                dataType: 'json',
                success: function (data) {
                    getMoney();
                    if(data.code == 0){
                        setTimeout(function(){
                            $(".sub").css("width","24%");
                        },1);
                        setTimeout(function(){
                            $(".sub").html("转账成功");
                        },100);
                    }else{
                      $.toptip(data.msg, 2000, 'warning');  //设置显示时间
                        setTimeout(function(){
                            $(".sub").css("width","24%");
                        },1);
                        setTimeout(function(){
                            $(".sub").html("转账失败");
                          
                        },100);
                    }
                }
            });

            is_sub = true;
            is_click = true;
        }
        /**
         if(!is_double){
                $(this).css("width","39%");
                setTimeout("setTimeout(\"$(\\\".sub\\\").text(\\\"请再次点击确认转出\\\");\",100);",300);
                is_double = true;
            }else{
                //第二次点击
                $(this).css("width","39%");

                setTimeout("$(this).html(\"<i class=\\\"weui-loading\\\"></i>\");",300);
            }
         */
        $(".weui-slider").on('touchstart', function() {

            var per = left + 5;
            $("#showPer").show();
            $("#showPerS").show();
            $(".weui-slider__track").css("transition","all 0s");
            $(".weui-slider__handler").css("transition","all 0s");
            if(first){
                $("#showPer").css('left',left+"%");
                $("#showPer").text(per+"%，"+ num +"EOL");
                $("#showPerS").css('margin-left',left+"%");
                first = false;
            }
        });
        $(".weui-slider").on('touchend', function() {
            $("#showPer").hide();
            $("#showPerS").hide();
            $(".weui-slider__track").css("transition","all 0.5s");
            $(".weui-slider__handler").css("transition","all 0.5s");
        });


        $('#slider1').slider(function (per) {
            num = (per / 100) * all;
            num = Math.ceil(num);
            $("#putNum").val(num);
            left = per-5;
            if(left <= 24){
                $("#showPer").css('left',left+"%");
            }else{
                $("#showPer").css('left',"24%");
            }
            $("#showPer").text(per+"%，"+num+"EOL");
            $("#showPerS").css('margin-left',left+"%");
            console.log(num);
        });
        $('#slider2').slider(function (per) {
            console.log(per);
        });
        function loadLogIn(){
            var is = true; //是否还有


            if(is){
                $("#LogList").append(content);
                $(".loadMoreInBtn").html("查看更多");
            }else{
                $(".loadMoreInBtn").html("暂无数据");
            }
        }


        function loadMore(){
            if(!first_log){
                first_log = !first_log;
                $(".loadMore").html("<i class=\"weui-loading\"></i>");
                $.ajax({
                    url:'/base/user/isMore',
                    type:'post',
                    data: {
                    },
                    async : true, //默认为true 异步
                    dataType: 'json',
                    success:function(data){
                        if(data.code == 0){
                            loadLog();


                            $.each(data.msg,function(n,e){
                                var num_color = "";
                                var str_icon = "";
                                if(e.type == "系统"){
                                    str_icon = "<img style=\"width:34px;padding-top: 7px;padding-left: 3px\" src=\"/img/logo.png\"/>";
                                    num_color = "#FFB746";
                                }
                                if(e.type == "转出"){
                                    str_icon = "<img style=\"width:32px;padding-top: 5px\" src=\"/img/rev.png\"/>";
                                    num_color = "#282828";
                                }
                                if(e.type == "接收"){
                                    str_icon = "<img style=\"width:22px;padding-top: 7.5px\" src=\"/img/get.png\"/>";
                                    num_color = "#FFB746";
                                }
                                var str = $("<div class=\"weui-flex list-gird\">\n" +
                                    "  <div>\n" +
                                    "    <div class=\"placeholder\">\n" +
                                    "      <div class=\"list-logo\">\n" +
                                    "        "+ str_icon +"\n" +
                                    "      </div>\n" +
                                    "    </div>\n" +
                                    "  </div>\n" +
                                    "  <div class=\"weui-flex__item\">\n" +
                                    "    <div class=\"placeholder\">\n" +
                                    "      <font style=\"font-size: 16px;color:#282828\">"+ e.str +"</font>\n" +
                                    "      <br>\n" +
                                    "      <font style=\"font-size: 13px;color: #282828\">[ "+ e.type +" ]</font>\n" +
                                    "      <br>\n" +
                                    "      <font style=\"font-size: 13px;color: #858585\">"+ e.time +"</font>\n" +
                                    "    </div>\n" +
                                    "  </div>\n" +
                                    "  <div>\n" +
                                    "    <div class=\"placeholder list-number\">\n" +
                                    "      <font style=\"color:"+ num_color +"\">"+ e.number +"</font>\n" +
                                    "    </div>\n" +
                                    "  </div>\n" +
                                    "</div>");
                                if(e.type == "系统" || e.type == "转出" || e.type == "接收")
                                $("#logList").append(str);


                            });


                        }
                        if(data.code == -1){
                            this.location.href= '/';
                        }
                        if(data.code == -2){
                            $(".loadMore").html("已无更多");
                        }
                    }
                });
            }else{
                loadLog();
            }


        }

        function loadLog(){
            var is = true; //是否还有

            if(is){
                $("#logs").popup();
                $(".loadMore").html("查看更多");
            }else{
                $(".loadMore").html("暂无数据");
            }

        }


        function hideTopTip(){
            $(".notice-box").css("margin-top","-35px");
        }
        function showTopTip(){
            $(".notice-box").css("margin-top","0");
            setTimeout("hideTopTip()",3000);
        }

        function open_popup(){
            touchMove = false;
            $("#popup").popup();
        }
        function open_popup2(){
            $("#popup2").popup();
        }
        function close_popup(){
            $.closePopup()
        }
        function copy() {
            $.toptip('复制成功！', 2000, 'success');  //设置显示时间
        }
        function getMoney(){
            $.ajax({
                url: '/base/user/getMoney',
                type: 'post',
                data: {},
                async: true, //默认为true 异步
                dataType: 'json',
                success: function (data) {
                    if(data.code == 0){
                        //$(".money").text();
                        countUp($(".money"),data.num,0,1200,0);
                    }
                }
            });

        }


    </script>
</body>
</html>